import Vue from 'vue'
import Router from 'vue-router'
import me from '../views/me/me.vue'
import discover from '../views/discover/discover.vue'
import order from '../views/order/order.vue'
import profile from '../views/profile/profile.vue'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/me', name: 'me', component: me, children: [] },
    { path: '/discover', name: 'discover', component: discover },
    { path: '/order', name: 'order', component: order },
    { path: '/profile', name: 'profile', component: profile },
    { path: '*', redirect: '/me' }
    // {
    //   path: '/about',
    //   name: 'about',
    //   // route level code-splitting
    //   // this generates a separate chunk (about.[hash].js) for this route
    //   // which is lazy-loaded when the route is visited.
    //   component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    // }
  ]
})
